package com.example.xymarket.common;

import android.graphics.drawable.Drawable;

import com.example.xymarket.po.Merchant;
import com.example.xymarket.po.UserInfo;

public class Info {
    public static UserInfo getMyUserInfo() {
        return myUserInfo;
    }

    public static void setMyUserInfo(UserInfo myUserInfo) {
        Info.myUserInfo = myUserInfo;
    }

    public static Drawable getMyUserAvatar() {
        return myUserAvatar;
    }

    public static void setMyUserAvatar(Drawable myUserAvatar) {
        Info.myUserAvatar = myUserAvatar;
    }

    public static Merchant getMyMerchant() {
        return myMerchant;
    }

    public static void setMyMerchant(Merchant myMerchant) {
        Info.myMerchant = myMerchant;
    }

    private static UserInfo myUserInfo=null;

    private static Drawable myUserAvatar=null;

    private static Merchant myMerchant=null;

    public void makeNull()
    {
        myMerchant=null;
        myUserInfo=null;
        myUserAvatar=null;
    }
}
